import java.io.*;

public class ReadByLine {
    public static String line;

    public static String[] str;

    public static int sum;

    public static void main(String[] args) throws IOException {
        BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
        PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));

        while ((line = in.readLine() ) != null) {  //每次读取一行数据
            str = line.split(" "); //从每个空格分开数据
            sum = 0;
            for(String num : str) {
                sum += Integer.valueOf(num); // 转换为整型
            }
            out.println(sum);
        }
        out.flush();
        out.close();
        in.close();
    }
}
